package daa.levelup.UnitFactory;

abstract public class Unit {
    private int health ;
    private int armor ;
    private int attackCount;
    private String name;
    private String weapon;



    public abstract void level();

    public abstract String toString();

    protected Unit(int health, int armor, String name, int attackCount, String weapon) {
        this.health = health;
        this.armor = armor;
        this.name = name;
        this.attackCount = attackCount;
        this.weapon = weapon;
    }

    public void setWeapon(String weapon) {
        this.weapon = weapon;
    }

    public int getAttackCount() {
        return attackCount;
    }

    public void setAttackCount(int attackCount) {
        this.attackCount = attackCount;
    }

    public String getName() {
        return name;
    }


    public void setHealth(int health) {
        this.health = health;
    }


    public void setArmor(int armor) {
        this.armor = armor;
    }


}
